package cool.doudou.doudada.data.audit.auto.configuration;

import cool.doudou.doudada.data.audit.core.helper.DataAuditHelper;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * DataAuditAutoConfiguration
 *
 * @author jiangcs
 * @since 2022/10/18
 */
@Configuration
public class DataAuditAutoConfiguration {
    @ConditionalOnMissingBean(DataAuditHelper.class)
    @Bean
    public DataAuditHelper dataAuditHelper() {
        return new DataAuditHelper();
    }
}
